package com.joker.orange.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.joker.common.annotation.ExcelDictFormat;
import com.joker.common.convert.ExcelDictConvert;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 播放记录视图对象 t_play_record
 *
 * @author Joker
 * @date 2024-06-10
 */
@Data
@ExcelIgnoreUnannotated
public class PlayRecordVo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 唯一标识
     */
    @ExcelProperty(value = "唯一标识")
    private Long id;

    /**
     * 用户ID
     */
    @ExcelProperty(value = "用户ID")
    private Long userId;

    /**
     * 视频ID
     */
    @ExcelProperty(value = "视频ID")
    private Long videoId;

    /**
     * 视频封面
     */
    @ExcelProperty(value = "视频封面")
    private String videoCover;

    /**
     * 视频名称
     */
    @ExcelProperty(value = "视频名称")
    private String videoName;

    /**
     * 视频类型（0-网格视频、1-短视频）
     */
    @ExcelProperty(value = "视频类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=-网格视频、1-短视频")
    private String videoType;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;
}
